80 IF PEEK(104) < >68 THEN POKE 104,68: POKE 17408,0: HOME : PRINT "RELOCATING THE PROGRAM": PRINT CHR$(4)"RUNMAJOR.MAYHEM"
90 LOMEM: 25088
100 TEXT : HOME : PRINT "MAJOR MAYHEM": PRINT "BY JOHN ROMERO": PRINT "COPYRIGHT 1987 BY MICROSPARC, INC.": VTAB 12: PRINT "MAKE SURE THE CAPS LOCK KEY IS DOWN": DIM S(18),N$(18),L(18)
330 NEXT : PRINT "GO!";: IF LV >3 THEN POKE 33090,LV
340 RETURN
350 HOME : VTAB 21: HTAB 13: INVERSE : PRINT ": :": HTAB 13: PRINT " MAJOR MAYHEM ": HTAB 13: PRINT ": :": NORMAL : FOR I = 1 TO 2000: NEXT : HOME : REM 14/14 SPACES
360 VTAB 21: HTAB 1: PRINT "DESIGNED/PROGRAMMED BY JOHN ROMERO": FOR I = 1 TO 1500: NEXT :HC = 0: GOSUB 190
370 INVERSE : PRINT "SELECT WITH SPACEBAR, RETURN TO CHOOSE:": NORMAL
380 PRINT "( ) PLAY GAME ( ) SEE SCORES ( ) FIX";
390 POKE 33090,3
400 H = 2: POKE 785,3: POKE 786,LV: POKE 787,0: FOR I = 788 TO 790: POKE I,0: NEXT
410 VTAB 23: HTAB H: GET A$: IF A$ = " " THEN H = H +15: IF H >38 THEN H = 2
420 IF A$ < > CHR$(13) THEN 410
430 IF H = 2 THEN 460
440 IF H = 32 THEN GOSUB 910: VTAB 23: HTAB 1: GOTO 380
450 GOTO 1140
460 HOME : VTAB 21: HTAB 1: PRINT "MAJORS : ENERGY BALLS:": PRINT "LEVEL : SCORE:": REM 6/6 SPACES
500 CALL 32768: FOR J = 1 TO 500: NEXT : CALL 32768: FOR J = 1 TO 500: NEXT : IF PEEK( -16384) <128 AND PEEK(49249) <128 THEN 500
510 POKE KO,CN: POKE WA,TT
520 IF PEEK(49249) >127 THEN 520
530 VTAB 24: HTAB 1: CALL -868
540 CALL 781: POKE -16368,0
550 R = PEEK(RC): IF R = 3 THEN 600
560 POKE XX,0: POKE YY,13: POKE SH,1: CALL 32768
570 IF R = 1 THEN VTAB 21: HTAB 1: CALL -868: INVERSE : PRINT "YOU CAN'T MAKE IT, NOT ENOUGH ENERGY!": NORMAL : VTAB 23: CALL -868: HTAB 15: INVERSE : PRINT "GAME OVER!";: GOTO 640
580 IF R = 4 THEN VTAB 24: HTAB 1: CALL -868: INVERSE : PRINT "QUIT COMMAND--WANT TO PLAY AGAIN?";: NORMAL : GET A$: ON A$ = "Y" GOTO 640: HOME : TEXT : END
590 IF R = 2 THEN VTAB 24: HTAB 1: PRINT "YOU MADE IT! GET READY MAJOR...";: GOTO 820
600 IF NOT PEEK(785) THEN VTAB 21: HTAB 1: CALL -868: INVERSE : PRINT "YOU HAVE GOTTEN YOUR LAST SPIDER BITE!": NORMAL : VTAB 23: CALL -868: HTAB 15: INVERSE : PRINT "GAME OVER!";: GOTO 640
610 CALL 32768: CALL 791: FOR I = 1 TO 100: NEXT : CALL 32768: IF PEEK( -16384) <128 AND PEEK(49249) <128 THEN 610
620 IF PEEK(49249) >127 THEN 620
630 GOTO 540
640 NUM = 0: FOR I = 0 TO 5:NUM = NUM +(( PEEK(I +1764) -176) *10 ^(5 -I)): NEXT
1160 FOR I = 1 TO 18: PRINT 1 + INT((I -1)/3); SPC( 7);:S = S(I): PRINT "000000";: HTAB 14 - LEN( STR$(S)) +1: PRINT S;: REM 6 ZEROS
1170 HTAB 18: PRINT N$(I);: HTAB 35: PRINT L(I): IF I/3 = INT(I/3) THEN FOR J = 1 TO 40: PRINT "-";: NEXT
1180 IF PEEK(37) >16 THEN PRINT : PRINT "PRESS RETURN FOR MORE...";: GET A$: HOME
1190 NEXT : POKE 34,0
1200 PRINT : PRINT "THAT'S ALL--PRESS RETURN";: GET A$: HOME : CALL -3100
1210 VTAB 21: HTAB 1: PRINT "PROGRAMMED BY JOHN ROMERO"
1220 GOTO 370
1230 PRINT "ONE MOMENT PLEASE..."
1240 LOC = 24576:CU = 0: FOR H = 0 TO 2:BYTE = 31: FOR I = 0 TO 3:BYTE = BYTE +1: FOR J = 0 TO 1: FOR K = 0 TO 7: POKE LOC +CU,BYTE +(4 *K):CU = CU +1: NEXT : NEXT : NEXT : NEXT
1250 POKE LOC +CU,255:CU = CU +1: IF CU <256 THEN 1250